<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
 
	<%@ include file="/jsp/imports/header.jsp" %>
	
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.maskedinput-1.3.js"></script>
	
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/ui-lightness/jquery-ui-1.8.16.custom.css"/> 
	<style type="text/css">
			/*demo page css*/
			.demoHeaders { margin-top: 2em; }
			#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
			#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
			ul#icons {margin: 0; padding: 0;}
			ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
			ul#icons span.ui-icon {float: left; margin: 0 4px;}
		</style>
		
		<script>
	$(function() {
		var dates = $( "#from, #to" ).datepicker({
			defaultDate: "+1w",
			changeMonth: true,
			numberOfMonths: 3,
			onSelect: function( selectedDate ) {
				var option = this.id == "from" ? "minDate" : "maxDate",
					instance = $( this ).data( "datepicker" ),
					date = $.datepicker.parseDate(
						instance.settings.dateFormat ||
						$.datepicker._defaults.dateFormat,
						selectedDate, instance.settings );
				dates.not( this ).datepicker( "option", option, date );
			}
		});
	});


	$(function() {
		$( "#data" ).datepicker({
			showOtherMonths: true,
			selectOtherMonths: true
		});
	});


	jQuery(function($){
		   $("#data").mask("99/99/9999");
		});

	function foward(acao){
		document.form.action = acao;
		document.form.submit();
	}
	</script>
</head>

<body>
<c:set var="page" value="jsp/diretor/calendario/dirCadastraInicioFimSemestre.jsp" scope="session"/>
<div class="contentwrap">
	
<div class="headwrap">


  <%@ include file="../../imports/top.jsp" %>   
    


	<div class="container content">
		
	  <div class="span-20 append-2 prepend-2">
	  
	  
	   
        <%@ include file="/jsp/imports/mensagens.jsp" %>
  	
  	
    
  <%@include file="/jsp/imports/menuLateral.jsp" %>
  

		  <div class="span-12 services last">
			<h2 align="center"><fmt:message key="configuraInicioFimSemestre.titulo"/></h2>
			<br/>
			<form action="cadastraInicioFimSemestre.do" method="post" name="form">
				<table>
					<tr>
						<td><fmt:message key="dataInicio"/></td>
						<td><input type="text" name="dataInicio" id="from" value="${param.dataInicio}"/></td>
					</tr>
					<tr>
						<td><fmt:message key="dataFim"/></td>
						<td><input type="text" name="dataFim" value="${param.dataFim}" id="to"/></td>
					</tr>
				</table>
				<input type="submit" value="<fmt:message key="botao.cadastrar"/>"/>
				<input type="button" value="<fmt:message key="botao.cancelar"/>" onclick="foward('${pageContext.request.contextPath}/jsp/index.jsp')"/>
				<br/>
				<input type="hidden" name="tipo" value="A"/>
			
			</form>				
		  </div>
			
		  <div class="final"></div>
		
		</div>
	
	</div>

</div>

</div>

<%@ include file="/jsp/imports/footer.jsp" %>
</body>
</html>